package com.eBook.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eBook.dao.BookDao;
import com.eBook.entity.Book;
import com.eBook.service.BookService;

@Service
public class BookServiceImpl implements BookService{
	
	@Autowired
	private BookDao bookDao;
	
	@Override
	public List<Book> findAllBooksByTypeId(int typtId) {
		return bookDao.findAllBooksByTypeId(typtId);
	}

	@Override
	public Book findBookById(int id) {
		return bookDao.findBookById(id);
	}
	
	

}
